/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package game;

/**
 *
 * @author Toan
 */
import java.net.*;
import java.io.*;

public class TriviaServer {

public static void main(String [] args) {
    try {
       ServerSocket server = new ServerSocket(1234);
        while(true) {
            new TriviaThread(server.accept()).start();
             }
//1234 is an unused port number
        } catch (IOException e) {
        System.out.println("Cannot open socket:" +e.getMessage());
        }
    }
}